<div class="row">
  <div class="col-sm-12">
    <input class="inputfile" id="file" type="file" ng2FileSelect  [uploader]="uploader" (change)="selectedFileOnChanged($event)"  placeholder="请选择要上传的文件" multiple>
    <label  for="file">选择文件</label><br><br>
    <table class="table table-striped table-hover table-bordered">
      <thead>
      <tr class="title">
        <th width="50%">文件名称</th>
        <th width="25%">文件大小</th>
        <th width="25%">操作</th>
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let file of fileList">
        <td>
          <strong><a href="{{ file?.filePath }}" >{{ file?.name }}</a></strong>
        </td>
        <td>{{ file?.filesize/1024/1024 | number:'.2' }} MB</td>
        <td nowrap>
          <!--<button type="button" class="btn btn-danger btn-xs"-->
          <!--(click)="delFile(file)">-->
          <!--<span class="glyphicon glyphicon-trash"></span> 删除-->
          <!--</button>-->
          <a (click)="delFile(file)">删除</a>
        </td>
      </tr>
      </tbody>
    </table>
  </div>
</div>

